package com.wish.wishfinancial_service.service.impl;

import com.wish.wishfinancial_service.entity.TFkBusinessCredit;
import com.wish.wishfinancial_service.mapper.TFkBusinessCreditMapper;
import com.wish.wishfinancial_service.service.ITFkBusinessCreditService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import dto.financialservice.ViewDetailsRequestDto;
import dto.financialservice.ZJFInformation;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 风控公寓授信主表 服务实现类
 * </p>
 *
 * @author weijiaz
 * @since 2021-04-11
 */
@Service
public class TFkBusinessCreditServiceImpl extends ServiceImpl<TFkBusinessCreditMapper, TFkBusinessCredit> implements ITFkBusinessCreditService {

    @Override
    public TFkBusinessCredit queryObjectBusinessId(Long businessId) {
        return this.baseMapper.queryObjectBusinessId(businessId);
    }

    @Override
    public ZJFInformation findByBusinessAndProductId(ViewDetailsRequestDto viewDetailsRequestDto) {
        ZJFInformation informationList = baseMapper.findByBusinessAndProductId(viewDetailsRequestDto);
        return informationList;
    }
}
